package com.zhou.advice.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Mr.zhou
 */
@RestController
@RequestMapping("hello")
public class HelloController {

    @RequestMapping("sayHello")
    public String sayHello() {
        return "hello, spring boot";
    }
    @RequestMapping("sayException")
    public String sayException() {
        Integer.parseInt("a");
        return "hello, exception";
    }
}
